﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fast.Presentation.Print;
using Fast.Presentation.Bematech;

namespace Fast.Presentation.WinForms.Factory
{
    public static class PrinterFactory
    {
        public static IPrinter getPrinter(short codigo)
        {
            IPrinter printer;
            switch (((Printers)codigo))
            {
                case Printers.Bematech:
                    printer = new BematechPrinter();
                    break;
                case Printers.Daruma:
                    printer = new DarumaPrinter();
                    break;
                case Printers.MecafW32:
                    printer = new MecafW32Printer();
                    break;
                default:
                    printer = new BematechPrinter();
                    break;
            }

            return printer;
        }
    }
}
